package net.suntec.mrs.client;

import java.io.IOException;

import net.suntec.mrs.client.message.FileMessageSender;

/**
 * 主程序入口
 */
public class App {
	public static void main( String[] args ) {

		final String filePath = "D:\\elasticsearch-transport-couchbase-master.zip";
		final String userToken = "cf319b8a51fbff0b244406a2d31ef193";
		final String host = "172.26.181.46";
		final int port = 2391;

		try {
			// 传输指定文件
			FileMessageSender msg_sender = new FileMessageSender( filePath, userToken, host, port );
			msg_sender.send();
		}
		catch ( IOException e ) {
			e.printStackTrace();
		}
	}
}
